<template>
<div>
  <el-breadcrumb separator-class="el-icon-arrow-right" style="font-size: 16px">
    <el-breadcrumb-item :to="{ path: '/' }">后台管理</el-breadcrumb-item>
    <el-breadcrumb-item>入库申请</el-breadcrumb-item>
  </el-breadcrumb>

  <el-divider></el-divider>

  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="填写入库单" name="first">
      <h3>基本信息</h3>
      <el-divider></el-divider>
      <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="采购人" style="width:400px;">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
        <el-form-item label="供应商" style="width:400px;">
          <el-input v-model="form.supplier"></el-input>
        </el-form-item>
        <el-form-item label="合同号" style="width:400px;">
          <el-input v-model="form.number"></el-input>
        </el-form-item>
      <el-form-item label="验收人">
        <el-select v-model="form.region" placeholder="请选择验收人">
          <el-option label="刘一凡" value="liuyifan"></el-option>
          <el-option label="陈梦凡" value="chenmengfan"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="购置日期">
        <el-col :span="11">
          <el-date-picker type="date" placeholder="购置日期" v-model="form.date1" style="width: 350px;"></el-date-picker>
        </el-col>
      </el-form-item>
        <el-form-item label="入库日期">
          <el-col :span="11">
            <el-date-picker type="date" placeholder="入库日期" v-model="form.date1" style="width: 350px;"></el-date-picker>
          </el-col>
        </el-form-item>

        <h3>入库明细</h3>
        <el-divider></el-divider>

        <div class="demo-input-size">
          <h6>资产名称</h6>
          <el-input
              size="small"
              placeholder="请输入内容"
              suffix-icon="el-icon-date"
              v-model="input1">
          </el-input>
          <h6>资产编号</h6>
          <el-input
              size="small"
              placeholder="请输入内容"
              suffix-icon="el-icon-date"
              v-model="input2">
          </el-input>
          <h6>规格类型</h6>
          <el-input
              size="small"
              placeholder="请输入内容"
              suffix-icon="el-icon-date"
              v-model="input3">
          </el-input>
          <h6>单价</h6>
          <el-input
              size="small"
              placeholder="请输入内容"
              suffix-icon="el-icon-date"
              v-model="input4">
          </el-input>
          <h6>数量</h6>
          <el-input
              size="small"
              placeholder="请输入内容"
              suffix-icon="el-icon-date"
              v-model="input5">
          </el-input>
        </div>


        <el-form-item>
        <el-button type="primary" @click="onSubmit">立即创建</el-button>
        <el-button>取消</el-button>
      </el-form-item>
        </el-form>

    </el-tab-pane>


    <el-tab-pane label="历史申请记录" name="second">历史申请记录</el-tab-pane>
  </el-tabs>
</div>
</template>

<script>
export default {
  name: "Storage application",

data() {
  return {
    activeName: 'second',
    form: {
      name: '',
      supplier:'',
      number:'',
      region: '',
      date1: '',
      date2: '',
      input1: '',
      input2: '',
      input3: '',
      input4: '',
      input5: ''
    }
  };
},
methods: {
  handleClick(tab, event) {
    console.log(tab, event);
  },
  onSubmit() {
    console.log('submit!');
  }
},

}
</script>

<style scoped>

</style>